package com.es.disped.common.constant;

/**
 * @Author Anson <br>
 * 
 * Copyright by EasyShare 2019<br>
 *  
 * All right reserved<br>
 *
 * Created on 2019年4月27日<br>
 *
 * @名称： DataStatusModel.java <br>
 * <p>
 * @描述： 数据状态枚举模型<br>
 */
public enum RecordStatus {

	VERTIFY("审核中",1),USEAGE("使用中",2),DELETE("已删除",3),FREEZE("冻结",4);
	
	private String name;
	private int value;
	
	private RecordStatus(String name,int value)
	{
		this.setName(name);
		this.setValue(value);
	}
	
	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public static String getName(int value)
	{
		for(int i=0;i<RecordStatus.values().length;i++)
		{
			if(RecordStatus.values()[i].getValue()==value)
			{
				return RecordStatus.values()[i].getName();
			}
		}
		return null;
	}
}
